echo "======Start All Servers====="
read -p ""
./d_kill.sh
rm -rf /var/tmp/824-*
./start_masters.sh
./start_group1.sh
./start_group2.sh
echo "join 900 :9001,:9002,:9003" | ./shardmaster_client -masters :10001
echo "join 901 :9011,:9012,:9013" | ./shardmaster_client -masters :10001
echo "======Put/Get Values===="
read -p ""
echo "put 0 0" | ./shardkv_client -masters :10001
echo "put 9 9" | ./shardkv_client -masters :10001
echo "get 0" | ./shardkv_client -masters :10001
echo "get 9" | ./shardkv_client -masters :10001
echo "======Now kill all shardkv servers========="
read -p ""
kill `pgrep shardkv`
echo "kill \`pgrep shardkv\`"
echo "======Restart all shardkv servers=========="
read -p ""
./start_group1.sh
./start_group2.sh
echo "get 0" | ./shardkv_client -masters :10001
echo "get 9" | ./shardkv_client -masters :10001


